perm filename WHEN[3,2]1 blob sn#276518 filedate 1977-04-16 generic text, type T, neo UTF8
Typing WHEN prints out your most recent logout time, and the directory
which did the logging out.  The fact that you are currently logged  in
does not affect this information.  As with FINGER, system crashes  are
not considered  to be  "logging  out".  Also,  if your  directory  was
deleted when you logged out, it will not be included by WHEN.

The WHEN  command also  takes optional  arguments.  If  only a  single
argument is given, it may be typed as:
	WHEN FOO
If two or more  arguments are used, separate  them by semicolons,  not
commas.  The various argument forms are:
	.	Report only on current directory.
	*	Give latest logouts for all of your directories.
       PRG	Give latest logout from among PRG's directories.
      *,PRG	Give logouts for all of PRG's directories.
     PRJ,PRG	Give latest logout for the single directory [PRJ,PRG].
Note that brackets are not included in any of the options.  If you are
aliased, the . and * options will use the aliased ppn.  For example:
	WHEN DON;*;S,SYS;ME
would tell  you  when DON  last  logged out  (and  from which  of  his
directories), list all  directories for  you (or  for whomever  you're
aliased to) with logout times, give the latest logout for [S,SYS], and
finally tell you when ME last logged out.

Note that, even if you are  not interested in the logout  information,
you can use WHEN *,FOO to get a list of all of FOO's directories.  The
other command for doing  this is DIR [*,FOO]/Q/F.   It turns out  that
WHEN is significantly faster  and uses fewer disk  ops.  WHEN is  also
much faster than FINGer for finding out logout times, but bear in mind
that WHEN gives no indication if the user you're interested in happens
to be logged in at the moment.

The WHEN command runs the program SYS:WHEN.DMP.  You may also run this
directly if you wish,  in which case the  arguments must be  separated
from the Run command by a semicolon:
	R WHEN;DON;*;S,SYS;ME

Typing WHEN ? yields a short  summary of the available options.   Like
WHO and WHERE, running WHEN clobbers your core image.